package org.smog.core.exception;

import lombok.Data;
import org.smog.core.exception.enums.ExceptionLevel;

/**
 * 基础应用程序异常,jdbc,spring,序列化 等等应用程序错误
 * 异常等级2
 *
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-14 11:24
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public abstract class BaseApplicationException extends BaseException {
    public BaseApplicationException(String message) {
        super(message, 5000, ExceptionLevel.APPLICATION.getValue());
    }

    public BaseApplicationException(String message, int code) {
        super(message, code, ExceptionLevel.APPLICATION.getValue());
    }

    public BaseApplicationException(String message, Throwable cause) {
        super(message, cause);
    }

}
